﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using mesoBoard.Data;

namespace mesoBoard.Web.Models
{
    public class OnlineDetails
    {
        public IEnumerable<OnlineUser> Users { get; set; }
        public IEnumerable<OnlineGuest> Guests { get; set; }
        public IEnumerable<OnlineUserDetails> UsersDetails { get; set; }
    }

    public class OnlineUserDetails
    {
        public OnlineUser OnlineUser { get; set; }
        public Role DefaultRole { get; set; }
        public string Color
        {
            get
            {
                if (DefaultRole == null)
                    return string.Empty;

                return DefaultRole.Rank.Color;

            }
        }
    }
}